using System;
using System.Collections.Generic;

namespace DemoApp.DataAccess 
{
  [Serializable]
  public partial class User 
  {
    public User()
    {
      Roles = new List<Role>();
      Groups = new List<Group>();
      CreatedSubjects = new List<Subject>();
      EditedSubjects = new List<Subject>();
    }

    public virtual Guid UserId { get; set; } 

    public virtual string UserName { get; set; } 

    public virtual string Password { get; set; } 

    public virtual IList<Role> Roles { get; set; }

    public virtual IList<Group> Groups { get; set; }

    public virtual IList<Subject> CreatedSubjects { get; set; }

    public virtual IList<Subject> EditedSubjects { get; set; }

  }

  [Serializable]
  public partial class UserKey
  {
    public Guid UserId { get; set; }
  }
}
